/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
matriz de 3*5 y cargar sus componentes i imprimirlas por pantalla
 */

package pruebas;

import java.util.Scanner;

/**
 *
 * @author ddpc
 */
public class matrices {
    Scanner teclado;
    int [][] a;
    matrices(){
        teclado = new Scanner(System.in);
        a = new int[3][5];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 5; j++) {
                System.out.println("introduce datos:");
                a[i][j]=teclado.nextInt();
            }            
        }          
    }
    public void mostrar(){
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 5; j++) {
                System.out.print(a[i][j]);
            }
            System.out.println("");
        }
    }
    public static void main(String[] args) {
        matrices x = new matrices();
        x.mostrar();
    }
}
